package com.qiuqiu.dao;

import com.qiuqiu.entity.TodoList;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;

/**
 * @author ：张艳杰
 * @description：TODO
 * @date ：Created in 2021/8/22 10:37
 * @modified By：
 * @version: 1.0
 */
public interface TodoListDao extends JpaRepository<TodoList, Integer> {

    @Modifying
    @Query("delete from  todo_list where is_completed = 1")
    void deleteByIsCompleted(int i);
}
